<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="page" value="#{sdQuotationBean.page}"/>
		<f:event type="preRenderView" listener="#{sdQuotationBean.paginate}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Search Sd Quotation entities"/>

	<ui:define name="header">
		Sd Quotation
	</ui:define>

	<ui:define name="subheader">
		Search Sd Quotation entities
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="search">
			<f:validateBean disabled="true">
				<h:panelGroup styleClass="search">

					<h:panelGrid columnClasses="label,component,required" columns="3">
						<h:outputLabel for="sdQuotationBeanExampleQtNo" value="Qt No:"/>
						<h:panelGroup>
							<h:inputText id="sdQuotationBeanExampleQtNo" value="#{sdQuotationBean.example.qtNo}"/>
							<h:message for="sdQuotationBeanExampleQtNo" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="sdQuotationBeanExampleSdQuotationStatus" value="Sd Quotation Status:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{sdQuotationStatusBean.converter}" id="sdQuotationBeanExampleSdQuotationStatus" value="#{sdQuotationBean.example.sdQuotationStatus}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sdQuotationStatusBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="sdQuotationBeanExampleSdQuotationStatus" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="sdQuotationBeanExampleSysTermOfPayment" value="Sys Term Of Payment:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{sysTermOfPaymentBean.converter}" id="sdQuotationBeanExampleSysTermOfPayment" value="#{sdQuotationBean.example.sysTermOfPayment}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysTermOfPaymentBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="sdQuotationBeanExampleSysTermOfPayment" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="sdQuotationBeanExampleSdCust" value="Sd Cust:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{sdCustBean.converter}" id="sdQuotationBeanExampleSdCust" value="#{sdQuotationBean.example.sdCust}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sdCustBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="sdQuotationBeanExampleSdCust" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="sdQuotationBeanExampleWfFlowTrans" value="Wf Flow Trans:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{wfFlowTransBean.converter}" id="sdQuotationBeanExampleWfFlowTrans" value="#{sdQuotationBean.example.wfFlowTrans}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{wfFlowTransBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="sdQuotationBeanExampleWfFlowTrans" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
					</h:panelGrid>
					<h:panelGroup styleClass="buttons">
						<h:commandLink value="Search" action="#{sdQuotationBean.search}" styleClass="btn btn-primary"/>
						<h:commandLink value="Create New" action="#{sdQuotationBean.create}" styleClass="btn btn-primary"/>
					</h:panelGroup>
				</h:panelGroup>
			</f:validateBean>
			
			<h:dataTable id="sdQuotationBeanPageItems" styleClass="data-table" value="#{sdQuotationBean.pageItems}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt No"/>
					</f:facet>
					<h:link outcome="/sdQuotation/view">
						<f:param name="id" value="#{_item.qtNo}"/>
						<h:outputText id="itemQtNo" value="#{_item.qtNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Code"/>
					</f:facet>
					<h:link outcome="/sdQuotation/view">
						<f:param name="id" value="#{_item.qtNo}"/>
						<h:outputText id="itemQtCode" value="#{_item.qtCode}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Descr"/>
					</f:facet>
					<h:link outcome="/sdQuotation/view">
						<f:param name="id" value="#{_item.qtNo}"/>
						<h:outputText id="itemQtDescr" value="#{_item.qtDescr}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Date"/>
					</f:facet>
					<h:link outcome="/sdQuotation/view">
						<f:param name="id" value="#{_item.qtNo}"/>
						<h:outputText id="itemQtDate" value="#{_item.qtDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Discount Perc"/>
					</f:facet>
					<h:link outcome="/sdQuotation/view">
						<f:param name="id" value="#{_item.qtNo}"/>
						<h:outputText id="itemQtDiscountPerc" value="#{_item.qtDiscountPerc}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<ui:include src="/resources/scaffold/paginator.xhtml">
				<ui:param name="paginatorBean" value="#{sdQuotationBean}"/>
			</ui:include>
		</h:form>
			
	</ui:define>

</ui:composition>
